class AdvertiseMessageState {
  /// 创建人，示例：-
  String? createBy;

  /// 创建时间，示例：null
  dynamic createTime;

  /// 公告内容，示例：你好
  String? noticeContent;

  /// 公告id，示例：1
  int? noticeId;

  /// 公告标题，示例：测试
  String? noticeTitle;

  /// 公告类型（1通知 2公告）
  String? noticeType;

  /// 备注，示例：null
  dynamic remark;

  /// 公告状态（0正常 1关闭）
  String? status;

  /// 更新人，示例：-
  String? updateBy;

  /// 更新时间，示例：null
  dynamic updateTime;

  AdvertiseMessageState({
    this.createBy,
    this.createTime,
    this.noticeContent,
    this.noticeId,
    this.noticeTitle,
    this.noticeType,
    this.remark,
    this.status,
    this.updateBy,
    this.updateTime,
  });

  factory AdvertiseMessageState.fromJson(Map<String, dynamic> json) =>
      AdvertiseMessageState(
        createBy: json["createBy"] ?? "",
        createTime: json["createTime"] ?? "",
        noticeContent: json["noticeContent"] ?? "",
        noticeId: json["noticeId"],
        noticeTitle: json["noticeTitle"] ?? "",
        noticeType: json["noticeType"] ?? "",
        remark: json["remark"] ?? "",
        status: json["status"] ?? "",
        updateBy: json["updateBy"] ?? "",
        updateTime: json["updateTime"] ?? "",
      );

  Map<String, dynamic> toMap() => {
        "createBy": createBy,
        "createTime": createTime,
        "noticeContent": noticeContent,
        "noticeId": noticeId,
        "noticeTitle": noticeTitle,
        "noticeType": noticeType,
        "remark": remark,
        "status": status,
        "updateBy": updateBy,
        "updateTime": updateTime,
      };
}
